<template>
	<view>
		<view class="advertising">
			<view class="shop">店铺名·24H自助台球(红旗路店)</view>
			<view class="table">台球桌 6号桌</view>
			<view class="price"> <text>￥12.5</text> /30分钟 </view>
		</view>
		
		<view class="member-price">
			<view class="member"> <text>本店会员</text> <image src="../../static/index/hy-right.png" mode=""></image> </view>
			<view class="number">￥0.00</view>
			<view class="top-up">
				充 <text>500</text>  送<text>500</text>
			</view>
		</view>
		
		<view class="title">开台</view>
		
		<view class="item-box">
			<view class="item z-margin-t-24" v-for="(item,index) in itemList" @click="toPay(item.url)">
				<view class="">
					<view class="z-font-30 name">{{item.name}}</view>
					<view class="text z-font-22">{{item.hint}}</view>
				</view>
				<image :src="item.icon" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				itemList:[
					{name:'预付款开台',hint:'预付款开启',icon:'../../static/index/table-item1.png',url:'/pages/prepayment/prepayment'},
					{name:'免押金开台',hint:'微信支付分满500',icon:'../../static/index/table-item2.png'},
					{name:'定时开台',hint:'自选时长，无押金',icon:'../../static/index/table-item3.png',url:'/pages/TimingStart/TimingStart'},
					{name:'美团开台',hint:'使用美团验券开台',icon:'../../static/index/table-item4.png',url:'/pages/Verification/Verification'},
					{name:'抖音开台',hint:'使用抖音验券开台',icon:'../../static/index/table-item5.png',url:'/pages/Verification/Verification'}
					
				]
			}
		},
		methods: {
			toPay(url){
				uni.navigateTo({
					url
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F7F8FA;
	}
	.advertising {
		width: 598rpx;
		// height: 300rpx;
		background: rgba(0,0,0,0.5);
		border-radius: 24rpx 24rpx 24rpx 24rpx;
		margin: auto;
		padding: 61rpx 44rpx;
		.shop {
			font-weight: bold;
			font-size: 24rpx;
			color: #FFFFFF;
		}
		.table {
			font-weight: 800;
			font-size: 40rpx;
			color: #FFFFFF;
			margin-top: 16rpx;
		}
		.price {
			display: inline-block;
			height: 48rpx;
			line-height: 48rpx;
			padding: 0 16rpx;
			background: #4BC264;
			border-radius: 6rpx 6rpx 6rpx 6rpx;
			font-size: 24rpx;
			color: #FFFFFF;
			margin-top: 24rpx;
			text {
				font-weight: bold;
				font-size: 30rpx;
			}
		}
	}
	
	.member-price {
		width: 686rpx;
		// height: 208rpx;
		background: linear-gradient( 90deg, #433C3C 0%, #4B3F42 100%);
		border-radius: 16rpx;
		margin: auto;
		margin-top: 24rpx;
		.member {
			font-weight: 500;
			font-size: 24rpx;
			color: #E9E2CE;
			padding-top: 28rpx;
			text-align: center;
			text {
				padding-left: 50rpx;
			}
			image {
				width: 22rpx;
				height: 22rpx;
				margin-left: 26rpx;
				vertical-align: middle;
			}
		}
		.number {
			font-weight: bold;
			font-size: 36rpx;
			color: #E9E2CE;
			padding-top: 10rpx;
			text-align: center;
		}
		.top-up {
			width: 686rpx;
			height: 74rpx;
			background: #F8D6BC;
			border-radius: 0rpx 0rpx 16rpx 16rpx;
			line-height: 74rpx;
			text-align: center;
			font-weight: 500;
			font-size: 26rpx;
			color: #985C3C;
			margin-top: 27rpx;
			text {
				font-size: 30rpx;
				color: #985C3C;
				font-weight: bold;
			}
		}
	}
	
	.title {
		font-weight: 800;
		font-size: 30rpx;
		color: #1C274C;
		padding: 40rpx 0 0 32rpx;
	}
	
	.item-box {
		padding: 0 32rpx;
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
		.item {
			width: 267rpx;
			height: 84rpx;
			background: #FFFFFF;
			border-radius: 24rpx 24rpx 24rpx 24rpx;
			padding: 32rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			.name {
				font-weight: 800;
				color: #1C274C;
			}
			.text {
				font-weight: 500;
				font-size: 22rpx;
				color: #A4A9B7;
				margin-top: 12rpx;
			}
			image {
				width: 66rpx;
				height: 66rpx;
			}
		}
	}
</style>
